package cn.lingnan.dialog;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;



public class ChefDialog {
private JPanel namePanel,loginNamePanel,phonePanel,opePanel;
	
	private JLabel nameLabel,loginNameLabel,phoneLabel;
	private JTextField nameTF,loginNameTF,phoneTF;
	
	private JButton saveBtn,cancelBtn;
	

	
	private void initView() {
		namePanel = new JPanel();
		nameLabel = new JLabel("姓名");
		nameTF = new JTextField(15);
		namePanel.add(nameLabel);
		namePanel.add(nameTF);
		
		loginNamePanel = new JPanel();
		loginNameLabel = new JLabel("账号");
		loginNameTF = new JTextField(15);
		loginNamePanel.add(loginNameLabel);
		loginNamePanel.add(loginNameTF);
		
		phonePanel = new JPanel();
		phoneLabel = new JLabel("手机");
		phoneTF = new JTextField(15);
		phonePanel.add(phoneLabel);
		phonePanel.add(phoneTF);
		
		opePanel = new JPanel();
		saveBtn = new JButton("保存");
		cancelBtn = new JButton("取消");
//		saveBtn.addActionListener(this);
//		cancelBtn.addActionListener(this);
		opePanel.add(saveBtn);
		opePanel.add(cancelBtn);
		
//		Container container = getContentPane();
//		container.add(namePanel);
//		container.add(loginNamePanel);
//		container.add(phonePanel);
//		container.add(opePanel);
	


	}

	public void setVisible(boolean b) {
		// TODO Auto-generated method stub
		
	}
}
